import request from '@/utils/request'

// 查询研学地点列表
export function listStudylocation(query) {
  return request({
    url: '/studytourism/studylocation/list',
    method: 'get',
    params: query
  })
}

// 查询研学地点详细
export function getStudylocation(locationId) {
  return request({
    url: '/studytourism/studylocation/' + locationId,
    method: 'get'
  })
}

// 新增研学地点
export function addStudylocation(data) {
  return request({
    url: '/studytourism/studylocation',
    method: 'post',
    data: data
  })
}

// 修改研学地点
export function updateStudylocation(data) {
  return request({
    url: '/studytourism/studylocation',
    method: 'put',
    data: data
  })
}

// 删除研学地点
export function delStudylocation(locationId) {
  return request({
    url: '/studytourism/studylocation/' + locationId,
    method: 'delete'
  })
}
